/**
 * Copyright (c) 2015-2030 by Beijing Yanlight Co., Ltd.
 * All rights reserved.
 */
package com.yanlight.app.dal.entity;

import com.yanlight.type.LevelType;
import com.yanlight.type.StatusType;

/**
 * 商品类目
 * 
 * @author haolw
 * @time 2017/11/28
 */
public class ShopCategory {
	private Integer id;
	private Integer companyId;
	private Integer parentId = 0;// 一级类目为根id0，二级类目为父类目一级的id
	private String name;
	private Integer level = LevelType.ONE.getType();// 类目级别
	private Integer sort = 0;// 排序，越小越靠前
	private Integer status = StatusType.ACTIVITY.ordinal();// 该类目是否可用

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getCompanyId() {
		return companyId;
	}

	public void setCompanyId(Integer companyId) {
		this.companyId = companyId;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
}
